package thread.demo01;

/**
 * @author 真香
 * @create 2021-06-02 22:16
 */
public class TestThread3 implements Runnable {

    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println("我在学习多线程----"+i);
        }
    }


    public static void main(String[] args){

        // 创建Runnable接口的实现类对象
        TestThread3 testThread3 = new TestThread3();
        new Thread(testThread3
        ).start();

        for (int i = 0; i < 20; i++) {
            System.out.println("我在写代码---"+i);
        }
    }




}
